#include "stdafx.h"
#include "DlgSPTest.h"
#include "DlgSPTestdlg.h"
//#include "../libSerialPort/ISerialPort.h"
//#pragma comment(lib, "libSerialPort.lib")

DLGSPTEST_API int DLGSPTEST_CALL LoopDlgSP(PTSPPARAM defaultParam, PTSPPARAM selectParam)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState());
	CDlgSPTestdlg dlg;
	dlg.SetDefaultState(defaultParam);
	if (dlg.DoModal() == IDOK)
	{
		//
		dlg.GetResultState(selectParam);
		return 0;
	}
	else
	{
		return -1;
	}
}
